package testops.top;

import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.stereotype.Component;

@Component("myAspect")
@Aspect
public class MyAspect {
    //前置增强方法
    @Before("PointCut.pt()")
    public void before(){
        System.out.println("前置代码增强.....");
    }


}

